package com.itheima.manager.service;

import com.itheima.manager.dao.SubwayDao;
import com.itheima.manager.domain.Subway;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Properties;

public class SubwayService {
    SubwayDao dao = new SubwayDao();

    public boolean login(String name, String passwrod) {
        boolean res=false;
        Properties prop=dao.login();
        if(prop!=null&&prop.containsKey(name)&&passwrod.equals(prop.getProperty(name))){
            res=true;
        }
        return res;
    }
}
